class TFStationConqFX extends xEmitter;

var tfstation station;

replication
{
	reliable if ( Role == ROLE_Authority )
		station;
}

simulated function postbeginplay()
{
    super.PostBeginPlay();
    settimer(0.1,true);
}

simulated function timer()
{
    local float x;

    if(station==none) destroy();
    else
    {
        if(station.grade>0) destroy();

        x=((station.counter/10)/station.buildtime)*200+55;

        if(station.myteam==0)
        {
            mColorRange[0].R=x;
            mColorRange[1].R=x;
        }
        else
        {
            mColorRange[0].B=x;
            mColorRange[1].B=x;
        }
    }
}

defaultproperties
{
     mSpawningType=ST_Explode
     mStartParticles=0
     mMaxParticles=7
     mLifeRange(0)=1.000000
     mLifeRange(1)=1.000000
     mRegenRange(0)=2.000000
     mRegenRange(1)=3.000000
     mSpeedRange(0)=0.000000
     mSpeedRange(1)=0.000000
     mRandOrient=True
     mSpinRange(0)=25.000000
     mSpinRange(1)=-25.000000
     mSizeRange(0)=200.000000
     mSizeRange(1)=100.000000
     mGrowthRate=-150.000000
     mColorRange(0)=(B=55,G=55,R=55)
     mColorRange(1)=(B=55,G=55,R=55)
     mAttenKa=0.300000
     mAttenKb=0.500000
     mAttenFunc=ATF_SmoothStep
     bTrailerSameRotation=True
     Physics=PHYS_Trailer
     RemoteRole=ROLE_SimulatedProxy
     Skins(0)=Texture'AW-2004Particles.Fire.BlastMark'
     Style=STY_Translucent
}
